package structural.adapter;

// 适配器测试类
public class Client {

    public static void main(String[] args) {
        Computer computer = new Computer();

        SDCard sdCard = new SDCardImpl();
        System.out.println(computer.readSD(sdCard));

        TFCardImpl tfCardImpl = new TFCardImpl();
        SDAdapterTF sdAdapterTF = new SDAdapterTF(tfCardImpl);
        System.out.println(computer.readSD(sdAdapterTF));
    }
}
